#pragma once
#include "DataStatistic.h"

enum ChartType{
	Tp_PassRate,
	Tp_Timeout
};

class CChartDlg :
	public WindowImplBase
{
public:
	CChartDlg(CDataStatisticDlg* pStaticDlg, ChartType tp);
	virtual ~CChartDlg();
	LPCTSTR GetWindowClassName() const { return _T("CChartDlg"); }
	virtual CDuiString GetSkinFile() { return _T("Chart.xml"); }
	virtual CDuiString GetSkinFolder() { return  _T("skin"); }
	virtual LRESULT ResponseDefaultKeyEvent(WPARAM wParam);
	virtual LRESULT OnNcActivate(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& bHandled);
	virtual void InitWindow();
private:
	CLabelUI*		m_pLabTitle = nullptr;
	CDataStatisticDlg* m_pStaticDlg = nullptr;
	ChartType		m_ChartType;
};

